package com.oo.polymorphic_4.area;

/**
 * ShapeFactory--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:26
 **/
public class ShapeFactory {

    public static Shape getShape(int i) {
        switch (i) {
            case 1:
                return new Round();
            case 2:
                return new Rectangle();
            case 3:
                return new Triangle();
            default:
                return null;
        }
    }
}
